//
//  NewWindowController.m
//  MacChallengeOC
//
//  Created by xf-ling on 2017/7/21.
//  Copyright © 2017年 LXF. All rights reserved.
//

#import "NewWindowController.h"

#import "AppDelegate.h"

@interface NewWindowController ()

@end

@implementation NewWindowController

- (void)windowDidLoad
{
    [super windowDidLoad];
    
    self.window.backgroundColor = [NSColor redColor];
    
}

- (IBAction)backBtnFunc:(id)sender
{
    AppDelegate *appDelegate = (AppDelegate *)[[NSApplication sharedApplication] delegate];
    
    [self.window close];
    
    [appDelegate.mainWindowController.window makeKeyAndOrderFront:nil];
    
}


@end
